<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>img-icon</title>
  <style>
    /* 行内元素   =>  可以设置宽度  - display:inline-block 
       默认间距   =>  vertical-align:top/bottom/middle  +  display:block;
       reset.min.css  img{vertical-align: middle;}

       1.标签 - 行元素/行内块元素  - 默认间距 
       2.img html 本身是有大小的  -  对比背景图片  css
    */
    img{
      /* width:30px;
      height:30px; */
      vertical-align: middle;
    }
    .parent{
      background-color: blue;
    }
  </style>
</head>

<body>
  <!-- 标签属性  img src="..."  alt=""
  路径:
  1.并列  -  直接书写图标的名称
  2.src/images.jpg   ../
  3.css/index.css    下一级  / 
  -->
  <div class="parent">
   <img src="https://img10.360buyimg.com/img/jfs/t1/124600/14/15671/184916/5f8d7112E7f52db74/60ee6ba8e8e5ce3a.gif"  alt="京东" title="鼠标移上">
</div>


  <div class="pic">
    <img
      src="https://img20.360buyimg.com/seckillcms/s280x280_jfs/t1/127999/23/14337/160073/5f802231Ed45da485/1c89086cde6b46ed.jpg.webp"
      alt="">
  </div>
</body>

</html>